LOAD_FONT

Description

This element enables the designer to load custom fonts from a font file (all native windows font files are supported). Once loaded, the font(s) can be used as usual with their font face name. This feature is available on Windows only (Mac not supported).

Common Attributes

None.

Specific Attributes
Name Value Type Default Value Description Comment V.

file

Valid file path to font file

empty

Path to the font file to include.

The file to include has to be a font file supported by the operating system.

1.2.1

Examples

The following file:

<?xml version="1.0" encoding="utf-8" ?>
<SKIN language_version="1.0" background_color="#ffffff" repeat="true" h_margin="10" layout_type="row">
	<LOAD_FONT file="myFont.ttf" />
</SKIN>

loads the myFont.ttf TrueType font file. If this font file contains a "My Font" font, you can use "My Font" as font_face attribute of a widget.